package org.dreamwork.jasmine2.engine;

/**
 * Created with IntelliJ IDEA.
 * User: seth.yang
 * Date: 14-9-12
 * Time: 下午2:33
 */
public class LimitExceedException extends RuntimeException {
    private String receive, limit;

    public LimitExceedException () {
        super ();
    }

    public LimitExceedException (String message) {
        super (message);
    }

    public LimitExceedException (String message, Throwable cause) {
        super (message, cause);
    }

    public LimitExceedException (Throwable cause) {
        super (cause);
    }

    public String getReceive () {
        return receive;
    }

    public void setReceive (String receive) {
        this.receive = receive;
    }

    public String getLimit () {
        return limit;
    }

    public void setLimit (String limit) {
        this.limit = limit;
    }

    @Override
    public String getMessage () {
        return "Upload size exceed the limit: expect " + limit + ", receive " + receive;
    }
}